import { IPSDEContextMenu } from './ipsdecontext-menu';
import { PSDEToolbarImpl } from './psdetoolbar-impl';

export class PSDEContextMenuImpl extends PSDEToolbarImpl implements IPSDEContextMenu {
  get owner(): IModel {
    return this.M.owner;
  }

  get cls(): string {
    return 'PSDEContextMenuImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.menu.IPSContextMenu' || cls == 'control.menu.IPSMenu' || cls == 'control.toolbar.IPSDEContextMenu') return true;
    return super.instanceof(cls);
  }
}
